package com.cyzy.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@NoArgsConstructor
@AllArgsConstructor
@ToString
@Data
@TableName("seckill")
public class Seckill {

  @TableId(type = IdType.AUTO)
  private long seckillId;
  private String title;
  private long courseId;
  private double price;
  private double seckillPrice;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private java.sql.Timestamp startTime;
  private long seckillTime;
  private java.sql.Timestamp endTime;
  private long totalLimit;
  private long studentLimitCount;
  private long soldCount;
  private long campusId;
  private String status;
  private String rejectReason;

  @TableField(fill = FieldFill.INSERT)
  private java.sql.Timestamp createTime;
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private java.sql.Timestamp updateTime;

}
